<tr id="layby_view_<?php echo $id?>" class="layby_list_view">
<td colspan="8">
	<div class="layby_list_view_part">
	<h3>Item infomation</h3>
	<table class="layby_list_view_table">
		<thead>
			<tr>
				<td>Item no.</td>
				<td>Item name</td>
				<td>Original price</td>
				<td>Intitial amount</td>
			</tr>
		</thead>
		<tbody>
			<?php foreach($laybyItem as $li){?>
			<tr style="line-height:20px;">
				<td><?php echo $li["SaleItem"]["item_id"]?></td>
				<td><?php echo $li["Item"]["name"]?></td>
				<td><?php echo  $this->Number->currency($li["Item"]["original_price"],"USD")?></td>
				<td><?php echo  $this->Number->currency($li["SaleItem"]["layby_amount"],"USD")?></td>
			</tr>
			<?php }?>
		</tbody>
	</table>
	</div>
	<div class="layby_list_view_part">
	<h3>Payment infomation</h3>
	<table class="layby_list_view_table">
		<thead>
			<tr>
				<td>Payment no.</td>
				<td>Date</td>
				<td>Payment Type</td>
				<td>Amount</td>
			</tr>
		</thead>
		<tbody>
			<?php foreach($laybyPayments as $lp){?>
			<tr style="line-height:20px;">
				<td><?php echo $lp["LaybyPayment"]["id"]?></td>
				<td><?php echo $this->Time->format("Y-m-d",$lp["LaybyPayment"]["created"])?></td>
				<td><?php echo $lp["PaymentType"]["name"]?></td>
				<td><?php echo $this->Number->currency($lp["LaybyPayment"]["amount"],"USD")?></td>
			</tr>
			<?php }?>
		</tbody>
	</table>
	</div>
</td>
</tr>